<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: elftosb::SRecordSourceFile Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classelftosb_1_1_s_record_source_file.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classelftosb_1_1_s_record_source_file-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">elftosb::SRecordSourceFile Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Executable file in the Motorola S-record format.  
 <a href="classelftosb_1_1_s_record_source_file.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="apps_2elftosb_2common_2_s_record_source_file_8h_source.html">SRecordSourceFile.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for elftosb::SRecordSourceFile:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="classelftosb_1_1_s_record_source_file__inherit__graph.svg" width="191" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for elftosb::SRecordSourceFile:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="classelftosb_1_1_s_record_source_file__coll__graph.svg" width="1862" height="432"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad22d71952ade8b5c3c5bb91a9d7751d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad22d71952ade8b5c3c5bb91a9d7751d4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#ad22d71952ade8b5c3c5bb91a9d7751d4">SRecordSourceFile</a> (const std::string &amp;path)</td></tr>
<tr class="memdesc:ad22d71952ade8b5c3c5bb91a9d7751d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:ad22d71952ade8b5c3c5bb91a9d7751d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba299300062263688e9776014bdaec48"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba299300062263688e9776014bdaec48"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#aba299300062263688e9776014bdaec48">~SRecordSourceFile</a> ()</td></tr>
<tr class="memdesc:aba299300062263688e9776014bdaec48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aba299300062263688e9776014bdaec48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Opening and closing</div></td></tr>
<tr class="memitem:a3a32228816e4c894a6f959098e363a9f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a32228816e4c894a6f959098e363a9f"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#a3a32228816e4c894a6f959098e363a9f">open</a> ()</td></tr>
<tr class="memdesc:a3a32228816e4c894a6f959098e363a9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens the file. <br /></td></tr>
<tr class="separator:a3a32228816e4c894a6f959098e363a9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcf9990e4915ed1836ba87ee2594fcfb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afcf9990e4915ed1836ba87ee2594fcfb"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#afcf9990e4915ed1836ba87ee2594fcfb">close</a> ()</td></tr>
<tr class="memdesc:afcf9990e4915ed1836ba87ee2594fcfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes the file. <br /></td></tr>
<tr class="separator:afcf9990e4915ed1836ba87ee2594fcfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Format capabilities</div></td></tr>
<tr class="memitem:a1a99d58a54439cdc62cf90639f3e2b5d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a99d58a54439cdc62cf90639f3e2b5d"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>supportsNamedSections</b> () const </td></tr>
<tr class="separator:a1a99d58a54439cdc62cf90639f3e2b5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefbcdb9819a36c75be39cbf8938c829b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aefbcdb9819a36c75be39cbf8938c829b"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>supportsNamedSymbols</b> () const </td></tr>
<tr class="separator:aefbcdb9819a36c75be39cbf8938c829b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Data sources</div></td></tr>
<tr class="memitem:a6f5072780b81924b7fafe962a17701c0"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classelftosb_1_1_data_source.html">DataSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#a6f5072780b81924b7fafe962a17701c0">createDataSource</a> ()</td></tr>
<tr class="memdesc:a6f5072780b81924b7fafe962a17701c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns data source for the entire file.  <a href="#a6f5072780b81924b7fafe962a17701c0">More...</a><br /></td></tr>
<tr class="separator:a6f5072780b81924b7fafe962a17701c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Entry point</div></td></tr>
<tr class="memitem:acd781315d6913378ea5bdf4425441881"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#acd781315d6913378ea5bdf4425441881">hasEntryPoint</a> ()</td></tr>
<tr class="memdesc:acd781315d6913378ea5bdf4425441881"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if an entry point was set in the file.  <a href="#acd781315d6913378ea5bdf4425441881">More...</a><br /></td></tr>
<tr class="separator:acd781315d6913378ea5bdf4425441881"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abae5d174e765f83030c08a9338941964"><td class="memItemLeft" align="right" valign="top">virtual uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#abae5d174e765f83030c08a9338941964">getEntryPointAddress</a> ()</td></tr>
<tr class="memdesc:abae5d174e765f83030c08a9338941964"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the entry point address.  <a href="#abae5d174e765f83030c08a9338941964">More...</a><br /></td></tr>
<tr class="separator:abae5d174e765f83030c08a9338941964"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classelftosb_1_1_source_file"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classelftosb_1_1_source_file')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classelftosb_1_1_source_file.html">elftosb::SourceFile</a></td></tr>
<tr class="memitem:aaeef7db97ffe06e0c9f558e1f1a69bca inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaeef7db97ffe06e0c9f558e1f1a69bca"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#aaeef7db97ffe06e0c9f558e1f1a69bca">SourceFile</a> (const std::string &amp;path)</td></tr>
<tr class="memdesc:aaeef7db97ffe06e0c9f558e1f1a69bca inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:aaeef7db97ffe06e0c9f558e1f1a69bca inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb46a420d0bd2070581c66d9da5e0bf4 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#acb46a420d0bd2070581c66d9da5e0bf4">~SourceFile</a> ()</td></tr>
<tr class="memdesc:acb46a420d0bd2070581c66d9da5e0bf4 inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#acb46a420d0bd2070581c66d9da5e0bf4">More...</a><br /></td></tr>
<tr class="separator:acb46a420d0bd2070581c66d9da5e0bf4 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfda637f78758b437d7a87bde627a45c inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#adfda637f78758b437d7a87bde627a45c">setOptions</a> (<a class="el" href="classelftosb_1_1_option_context.html">OptionContext</a> *context)</td></tr>
<tr class="memdesc:adfda637f78758b437d7a87bde627a45c inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the option context.  <a href="#adfda637f78758b437d7a87bde627a45c">More...</a><br /></td></tr>
<tr class="separator:adfda637f78758b437d7a87bde627a45c inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ceb6d57a1dc4b422e76675072d534c5 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ceb6d57a1dc4b422e76675072d534c5"></a>
const <a class="el" href="classelftosb_1_1_option_context.html">OptionContext</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a2ceb6d57a1dc4b422e76675072d534c5">getOptions</a> () const </td></tr>
<tr class="memdesc:a2ceb6d57a1dc4b422e76675072d534c5 inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the option context. <br /></td></tr>
<tr class="separator:a2ceb6d57a1dc4b422e76675072d534c5 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacdb5ea7b27721528dc89241fdb955fd inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aacdb5ea7b27721528dc89241fdb955fd"></a>
const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#aacdb5ea7b27721528dc89241fdb955fd">getPath</a> () const </td></tr>
<tr class="memdesc:aacdb5ea7b27721528dc89241fdb955fd inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the path to the file. <br /></td></tr>
<tr class="separator:aacdb5ea7b27721528dc89241fdb955fd inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ea4e7580fddb271f770dea1c3b6a3b5 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ea4e7580fddb271f770dea1c3b6a3b5"></a>
unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a6ea4e7580fddb271f770dea1c3b6a3b5">getSize</a> ()</td></tr>
<tr class="memdesc:a6ea4e7580fddb271f770dea1c3b6a3b5 inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the size in bytes of the file. <br /></td></tr>
<tr class="separator:a6ea4e7580fddb271f770dea1c3b6a3b5 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a784e0394aac1004dadbee9b264d732b4 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a784e0394aac1004dadbee9b264d732b4"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a784e0394aac1004dadbee9b264d732b4">isOpen</a> () const </td></tr>
<tr class="memdesc:a784e0394aac1004dadbee9b264d732b4 inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the file is already open. <br /></td></tr>
<tr class="separator:a784e0394aac1004dadbee9b264d732b4 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46815bc13a5e008033e4404f7ebfdfe3 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classelftosb_1_1_data_source.html">DataSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a46815bc13a5e008033e4404f7ebfdfe3">createDataSource</a> (<a class="el" href="classelftosb_1_1_string_matcher.html">StringMatcher</a> &amp;matcher)</td></tr>
<tr class="memdesc:a46815bc13a5e008033e4404f7ebfdfe3 inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a data source out of one or more sections of the file.  <a href="#a46815bc13a5e008033e4404f7ebfdfe3">More...</a><br /></td></tr>
<tr class="separator:a46815bc13a5e008033e4404f7ebfdfe3 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1560a6ef0141423d6e4978d67f8468f6 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classelftosb_1_1_data_source.html">DataSource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a1560a6ef0141423d6e4978d67f8468f6">createDataSource</a> (const std::string &amp;section)</td></tr>
<tr class="memdesc:a1560a6ef0141423d6e4978d67f8468f6 inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a data source out of one section of the file.  <a href="#a1560a6ef0141423d6e4978d67f8468f6">More...</a><br /></td></tr>
<tr class="separator:a1560a6ef0141423d6e4978d67f8468f6 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ba7511c0a10650dab3d02e4f35d1c0b inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ba7511c0a10650dab3d02e4f35d1c0b"></a>
virtual <a class="el" href="classelftosb_1_1_data_target.html">DataTarget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createDataTargetForSection</b> (const std::string &amp;section)</td></tr>
<tr class="separator:a8ba7511c0a10650dab3d02e4f35d1c0b inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace386b345ef852e2e0a252dc8fb22b93 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ace386b345ef852e2e0a252dc8fb22b93"></a>
virtual <a class="el" href="classelftosb_1_1_data_target.html">DataTarget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createDataTargetForSymbol</b> (const std::string &amp;symbol)</td></tr>
<tr class="separator:ace386b345ef852e2e0a252dc8fb22b93 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93b7c1e8e1b3f0b9eaa5d7ecd038718a inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93b7c1e8e1b3f0b9eaa5d7ecd038718a"></a>
virtual <a class="el" href="classelftosb_1_1_data_target.html">DataTarget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createDataTargetForEntryPoint</b> ()</td></tr>
<tr class="separator:a93b7c1e8e1b3f0b9eaa5d7ecd038718a inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4de73a78eb71707116ef52fe44598895 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4de73a78eb71707116ef52fe44598895"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a4de73a78eb71707116ef52fe44598895">hasSymbol</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:a4de73a78eb71707116ef52fe44598895 inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether a symbol exists in the source file. <br /></td></tr>
<tr class="separator:a4de73a78eb71707116ef52fe44598895 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9e932a2a7f68034210e769f307c1b9f inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9e932a2a7f68034210e769f307c1b9f"></a>
virtual uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#ad9e932a2a7f68034210e769f307c1b9f">getSymbolValue</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:ad9e932a2a7f68034210e769f307c1b9f inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of a symbol. <br /></td></tr>
<tr class="separator:ad9e932a2a7f68034210e769f307c1b9f inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae83e3674ac62739eb862b7cd81d4c3a8 inherit pub_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae83e3674ac62739eb862b7cd81d4c3a8"></a>
virtual unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#ae83e3674ac62739eb862b7cd81d4c3a8">getSymbolSize</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:ae83e3674ac62739eb862b7cd81d4c3a8 inherit pub_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of a symbol. <br /></td></tr>
<tr class="separator:ae83e3674ac62739eb862b7cd81d4c3a8 inherit pub_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a19ec615018bb78de55fd2615493f9825"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19ec615018bb78de55fd2615493f9825"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#a19ec615018bb78de55fd2615493f9825">isSRecordFile</a> (std::istream &amp;stream)</td></tr>
<tr class="memdesc:a19ec615018bb78de55fd2615493f9825"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test whether the <em>stream</em> contains a valid S-record file. <br /></td></tr>
<tr class="separator:a19ec615018bb78de55fd2615493f9825"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classelftosb_1_1_source_file"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classelftosb_1_1_source_file')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classelftosb_1_1_source_file.html">elftosb::SourceFile</a></td></tr>
<tr class="memitem:a32cff59ce3a989ccf10b25be0c4a12ef inherit pub_static_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classelftosb_1_1_source_file.html">SourceFile</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a32cff59ce3a989ccf10b25be0c4a12ef">openFile</a> (const std::string &amp;path)</td></tr>
<tr class="separator:a32cff59ce3a989ccf10b25be0c4a12ef inherit pub_static_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a147d910fa2a67cd93857f667993bce2f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#a147d910fa2a67cd93857f667993bce2f">buildMemoryImage</a> ()</td></tr>
<tr class="memdesc:a147d910fa2a67cd93857f667993bce2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build memory image of the S-record file.  <a href="#a147d910fa2a67cd93857f667993bce2f">More...</a><br /></td></tr>
<tr class="separator:a147d910fa2a67cd93857f667993bce2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classelftosb_1_1_source_file"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classelftosb_1_1_source_file')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classelftosb_1_1_source_file.html">elftosb::SourceFile</a></td></tr>
<tr class="memitem:a62e7eb8fb0fdb69d77ea9c8f3e1db91b inherit pro_methods_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62e7eb8fb0fdb69d77ea9c8f3e1db91b"></a>
std::ifstream *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a62e7eb8fb0fdb69d77ea9c8f3e1db91b">getStream</a> ()</td></tr>
<tr class="memdesc:a62e7eb8fb0fdb69d77ea9c8f3e1db91b inherit pro_methods_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal access to the input stream object. <br /></td></tr>
<tr class="separator:a62e7eb8fb0fdb69d77ea9c8f3e1db91b inherit pro_methods_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a38a1ba16adab45ee28f73bbe4586e932"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38a1ba16adab45ee28f73bbe4586e932"></a>
<a class="el" href="class_st_s_record_file.html">StSRecordFile</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#a38a1ba16adab45ee28f73bbe4586e932">m_file</a></td></tr>
<tr class="memdesc:a38a1ba16adab45ee28f73bbe4586e932"><td class="mdescLeft">&#160;</td><td class="mdescRight">S-record parser instance. <br /></td></tr>
<tr class="separator:a38a1ba16adab45ee28f73bbe4586e932"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad161aaf6dee3fff5db03a8fa64c52b0a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad161aaf6dee3fff5db03a8fa64c52b0a"></a>
<a class="el" href="class_st_executable_image.html">StExecutableImage</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#ad161aaf6dee3fff5db03a8fa64c52b0a">m_image</a></td></tr>
<tr class="memdesc:ad161aaf6dee3fff5db03a8fa64c52b0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Memory image of the S-record file. <br /></td></tr>
<tr class="separator:ad161aaf6dee3fff5db03a8fa64c52b0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9470d934968f47228990144d56d3278f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9470d934968f47228990144d56d3278f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#a9470d934968f47228990144d56d3278f">m_hasEntryRecord</a></td></tr>
<tr class="memdesc:a9470d934968f47228990144d56d3278f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether an S7,8,9 record was found. <br /></td></tr>
<tr class="separator:a9470d934968f47228990144d56d3278f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35f46830cbb3fdcfa044323267c0f5af"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35f46830cbb3fdcfa044323267c0f5af"></a>
<a class="el" href="class_st_s_record_file.html#struct_st_s_record_file_1_1_s_record">StSRecordFile::SRecord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_s_record_source_file.html#a35f46830cbb3fdcfa044323267c0f5af">m_entryRecord</a></td></tr>
<tr class="memdesc:a35f46830cbb3fdcfa044323267c0f5af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Record for the entry point. <br /></td></tr>
<tr class="separator:a35f46830cbb3fdcfa044323267c0f5af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classelftosb_1_1_source_file"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classelftosb_1_1_source_file')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classelftosb_1_1_source_file.html">elftosb::SourceFile</a></td></tr>
<tr class="memitem:a65745d957af5c8306dc3deb08ef4ad12 inherit pro_attribs_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65745d957af5c8306dc3deb08ef4ad12"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a65745d957af5c8306dc3deb08ef4ad12">m_path</a></td></tr>
<tr class="memdesc:a65745d957af5c8306dc3deb08ef4ad12 inherit pro_attribs_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Path to the file. <br /></td></tr>
<tr class="separator:a65745d957af5c8306dc3deb08ef4ad12 inherit pro_attribs_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eb54462ddca01b8db838d6390b8a0c2 inherit pro_attribs_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5eb54462ddca01b8db838d6390b8a0c2"></a>
<a class="el" href="group__smart__pointer.html#classsmart__ptr">smart_ptr</a>&lt; std::ifstream &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#a5eb54462ddca01b8db838d6390b8a0c2">m_stream</a></td></tr>
<tr class="memdesc:a5eb54462ddca01b8db838d6390b8a0c2 inherit pro_attribs_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">File stream, or NULL if file is closed. <br /></td></tr>
<tr class="separator:a5eb54462ddca01b8db838d6390b8a0c2 inherit pro_attribs_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afccb9fc57ff9cc5bfa43afe5002a3907 inherit pro_attribs_classelftosb_1_1_source_file"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afccb9fc57ff9cc5bfa43afe5002a3907"></a>
<a class="el" href="group__smart__pointer.html#classsmart__ptr">smart_ptr</a>&lt; <a class="el" href="classelftosb_1_1_option_context.html">OptionContext</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classelftosb_1_1_source_file.html#afccb9fc57ff9cc5bfa43afe5002a3907">m_options</a></td></tr>
<tr class="memdesc:afccb9fc57ff9cc5bfa43afe5002a3907 inherit pro_attribs_classelftosb_1_1_source_file"><td class="mdescLeft">&#160;</td><td class="mdescRight">Table of option values. <br /></td></tr>
<tr class="separator:afccb9fc57ff9cc5bfa43afe5002a3907 inherit pro_attribs_classelftosb_1_1_source_file"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Executable file in the Motorola S-record format. </p>
<p>Instead of presenting each S-record in the file separately, this class builds up a memory image of all of the records. Records next to each other in memory are coalesced into a single memory region. The data source that is returned from <a class="el" href="classelftosb_1_1_s_record_source_file.html#a6f5072780b81924b7fafe962a17701c0" title="Returns data source for the entire file. ">createDataSource()</a> exposes these regions as its segments.</p>
<p>Because the S-record format does not support the concepts, no support is provided for named sections or symbols. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a147d910fa2a67cd93857f667993bce2f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SRecordSourceFile::buildMemoryImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Build memory image of the S-record file. </p>
<p>Scans the S-records of the file looking for data records. These are S3, S2, or S1 records. The contents of these records are added to an <a class="el" href="class_st_executable_image.html" title="Used to build a representation of memory regions. ">StExecutableImage</a> object, which coalesces the individual records into contiguous regions of memory.</p>
<p>Also looks for S7, S8, or S9 records that contain the entry point. The first match of one of these records is saved off into the <a class="el" href="classelftosb_1_1_s_record_source_file.html#a35f46830cbb3fdcfa044323267c0f5af" title="Record for the entry point. ">m_entryRecord</a> member.</p>
<dl class="section pre"><dt>Precondition</dt><dd>The <a class="el" href="classelftosb_1_1_s_record_source_file.html#a38a1ba16adab45ee28f73bbe4586e932" title="S-record parser instance. ">m_file</a> member must be valid. </dd>
<dd>
The <a class="el" href="classelftosb_1_1_s_record_source_file.html#ad161aaf6dee3fff5db03a8fa64c52b0a" title="Memory image of the S-record file. ">m_image</a> member variable must have been instantiated. </dd></dl>

</div>
</div>
<a class="anchor" id="a6f5072780b81924b7fafe962a17701c0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classelftosb_1_1_data_source.html">DataSource</a> * SRecordSourceFile::createDataSource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns data source for the entire file. </p>
<dl class="section pre"><dt>Precondition</dt><dd>The file must be open before this method can be called. </dd></dl>

<p>Implements <a class="el" href="classelftosb_1_1_source_file.html#a8a7b3266add6182caffa17a971a035d6">elftosb::SourceFile</a>.</p>

</div>
</div>
<a class="anchor" id="abae5d174e765f83030c08a9338941964"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t SRecordSourceFile::getEntryPointAddress </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the entry point address. </p>
<p>If no entry point is available then 0 is returned instead. The method scans the records in the file looking for S7, S8, or S9 records. Thus, 16-bit, 24-bit, and 32-bit entry point records are supported.</p>
<dl class="section return"><dt>Returns</dt><dd>Entry point address. </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>No entry point is available. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classelftosb_1_1_source_file.html#a75b3336f542e2d1f3b3ba45e4da91893">elftosb::SourceFile</a>.</p>

</div>
</div>
<a class="anchor" id="acd781315d6913378ea5bdf4425441881"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool SRecordSourceFile::hasEntryPoint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if an entry point was set in the file. </p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">true</td><td>The file has an S7, S8, or S9 record. </td></tr>
    <tr><td class="paramname">false</td><td>No entry point is available. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classelftosb_1_1_source_file.html#a6e70cea61a759933bb47f8390f78eb5c">elftosb::SourceFile</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="apps_2elftosb_2common_2_s_record_source_file_8h_source.html">apps/elftosb/common/SRecordSourceFile.h</a></li>
<li>apps/elftosb/common/SRecordSourceFile.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>elftosb</b></li><li class="navelem"><a class="el" href="classelftosb_1_1_s_record_source_file.html">SRecordSourceFile</a></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:52 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
